const { query } = require('../config/database')

async function simpleCheck () {
  try {
    const users = await query(
      'SELECT email, username, is_vip, coin_balance FROM users'
    )
    console.log('用户数据:')
    users.forEach(user => {
      console.log(
        `- ${user.email} (${user.username}) - VIP: ${user.is_vip} - 书币: ${user.coin_balance}`
      )
    })
  } catch (error) {
    console.error('查询失败:', error.message)
  }
  process.exit(0)
}

simpleCheck()
